package com.ttn.business.openfeign.fallback;

import com.ttn.business.openfeign.StudentRecordFeignService;
import com.ttn.common.core.entity.Result;
import com.ttn.common.core.entity.business.Order;
import com.ttn.common.core.entity.studentrecord.StudentRecord;
import org.springframework.cloud.openfeign.FallbackFactory;

public class StudentRecordFeignServiceFallbackFactory implements FallbackFactory<StudentRecordFeignService> {

    @Override
    public StudentRecordFeignService create(Throwable cause) {
        return new StudentRecordFeignService() {
            @Override
            public Result<StudentRecord> serviceQueryStudentRecordById(Integer id) {
                return null;
            }

            @Override
            public Result modifyStudentRecordDeadLine(Order order) {
                return null;
            }
        };
    }
}
